package com.freewater.library.catalogue.infrastructure.model;

import com.freewater.library.catalogue.model.Book;
import com.freewater.library.common.domain.Nullable;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDate;

@Getter
@Setter
public class BookImpl extends Book {

    private long dbId;

    private int version;

    public BookImpl(String isbn, String title) {
        super(isbn, title);
    }

    public BookImpl(String isbn,
                String title,
                @Nullable String subtitle,
                @Nullable String author,
                @Nullable String publishingHouse,
                @Nullable LocalDate publicationDate,
                @Nullable String cover,
                @Nullable BigDecimal listPrice,
                @Nullable Integer pageCount,
                @Nullable String bindingAndLayout,
                @Nullable String series,
                @Nullable String description) {
        super(isbn, title, subtitle, author, publishingHouse,
                publicationDate, cover, listPrice, pageCount,
                bindingAndLayout, series, description);
    }
}
